<h1><%= "Website Users"[:website_users] %></h1>

<p><%= link_to image('new-user', :alt => 'New Website User'[:new_website_user]), website_user_new_url %></p>

<table id="users" class="index" cellpadding="0" cellspacing="0" border="0">
  <thead>
    <tr>
      <th class="user"><%= "E-mail"[:email] %> / <%= "Nickname"[:nickname] %></th>
      <th class="roles"><%= "Full Name"[:full_name] %></th>
      <th class="modify"><%= "Modify"[:modify] %></th>
    </tr>
  </thead>
  <tbody>
<% unless @website_users.empty? -%>
<% for website_user in @website_users -%>
    <tr class="node level-1">
      <td class="user">
        <%= link_to website_user.email, website_user_edit_url(:id => website_user) %>
        <small class="login"><%= website_user.nickname %></small>
      </td>
      <td class="roles">
        <%= website_user.name %>
      </td>
      <td class="remove"><%=  link_to(image('remove', :alt => 'Remove User'), website_user_remove_url(:id => website_user)) %></td>
    </tr>
<% end -%>
<% else -%>
    <tr>
      <td colspan="3" class="note"><%= "No Website Users"[:no_website_users] %></td>
    </tr>
<% end -%>
  </tbody>
</table>
<script type="text/javascript">
// <![CDATA[
  new RuledTable('users');
// ]]>
</script>

